package com.fau.wm.util;

import java.io.Serializable;

/**
 * 系统常量表
 * @author liy
 * @since 2014年7月25日,上午9:47:40
 */
public class SystemConfig implements Serializable {

	private static final long serialVersionUID = -757635066186116034L;
	
	//异常信息
	public static final String EDIT_EXCEPTION = "修改时发生错误，ID为空！";

	/* 库存调拨 */
	public static final String ALLOCATION_STATUS_PENDING = "0";			//库存调拨状态  0 待审核
	public static final String ALLOCATION_STATUS_APPROVAL = "1";		//库存调拨状态  1 调拨通过
	public static final String ALLOCATION_STATUS_REJECT = "2";			//库存调拨状态  2 调拨未通过
	public static final String ALLOCATION_STATUS_NEW = "3";				//库存调拨状态  3 新建
	
	/* 库存盘点 */
	public static final String INVENTOR_STATUS_PENDING = "0";			//库存盘点状态 0 待审核
	public static final String INVENTOR_STATUS_APPROVAL = "1";			//库存盘点状态 1 盘点通过
	public static final String INVENTOR_STATUS_REJECT = "2";			//库存盘点状态 2 盘点未通过
	public static final String INVENTOR_STATUS_NEW = "3";				//库存盘点状态 3 新建
	
	/* 仓库出库 */
	public static final String RECALL_STATUS_PENDING = "0";				//仓库出库状态 0 待审核
	public static final String RECALL_STATUS_APPROVAL = "1";			//仓库出库状态 1 出库通过
	public static final String RECALL_STATUS_REJECT = "2";				//仓库出库状态 2 出库未通过
	public static final String RECALL_STATUS_NEW = "3";					//仓库出库状态 3 新建
	
	public static final String RECALL_SELL_TYPE = "7";					//仓库出库类型 销售出库
	
	/* 仓库入库 */
	public static final String STORAGE_STATUS_PENDING = "0";			//仓库入库状态 0 待审核	
	public static final String STORAGE_STATUS_APPROVAL = "1";			//仓库入库状态 1 入库通过
	public static final String STORAGE_STATUS_REJECT = "2";				//仓库入库状态 2 入库未通过
	public static final String STORAGE_STATUS_NEW = "3";				//仓库入库状态 3 新建
	
	public static final String STORAGE_RETREAT_TYPE = "19";				//仓库入库类型 退货入库
	
	/*上传类型*/
	public static final String UPLOAD_EXCEL = "xls";					// 上传Excel格式 office 2003
	
	/*药品导入错误类型*/
	public static final String IMPORT_MEDICINE_NO_SORT = "0";			// 导入药品类别不存在
	public static final String IMPORT_MEDICINE_SERIALNUM = "1";			// 编号重复
	
	/*导出模板*/
	public static final String EXPORT_RECALL = "/template/recall/出库单导出模板.xls";			// 出库单导出模板
	public static final String STORAGE_RECALL = "/template/storage/入库单导出模板.xls";			// 入库单导出模板
	public static final String INVENTORY_EXPORT = "/template/medicine/库存盘点.xls";			// 导出库存盘点
	public static final String DELIVERY_EXPORT = "/template/medicine/订单发货导出模板.xls";		// 导出订单发货
	public static final String SIGN_EXPORT = "/template/medicine/订单签收导出模板 .xls";			// 导出订单签收
	public static final String RETREAT_EXPORT = "/template/medicine/订单退单导出模板.xls";		// 导出订单退单
	public static final String QUERY_EXPORT = "/template/medicine/订单查询导出模板.xls";			// 导出订单查询
	
	/*导入模板*/
	public static final String MEDICINE_RECALL_MASTERPLATE = "/template/recall/出库单导入模板.xls";			// 导出出库单
	public static final String MEDICINE_STORAGE_MASTERPLATE = "/template/storage/入库单导入模版.xls";
	public static final String MEDICINE_MASTERPLATE = "/template/medicine/药品导入模板03.xls";
	public static final String MEDICINE_DELIVERY_MASTERPLATE = "/template/medicine/批量导入发货.xls";
	public static final String MEDICINE_SIGN_MASTERPLATE = "/template/medicine/批量导入签收.xls";
	public static final String MEDICINE_RETREAT_MASTERPLATE = "/template/medicine/批量导入退单.xls";
	
	/*出库信息导入错误类型*/
	public static final String IMPORT_RECALL_SERIALNUM = "1";			// 编号重复
	
	/*入库信息导入错误类型*/
	public static final String IMPORT_STORAGE_SERIALNUM = "1";			// 编号重复
	
	/*订单是否开发票*/
	public static final String ORDERS_NO_INVOICE = "0";				// 无发票
	public static final String ORDERS_HAVE_INVOICE = "1";			// 订单有发票
	
	/*话务系统状态*/
	public static final String ORDERS_IMPORT_TYPE = "38";					// 正在输入
	public static final String ORDERS_UNDER_TYPE = "39";					// 已下单
	
	/*订单系统状态*/
	public static final String ORDERS_WAIT_AUDIT_TYPE = "39";				// 待审核
	public static final String ORDERS_AUDIT_PASS_TYPE = "0";	   			// 审核通过
	public static final String ORDERS_AUDIT_NOPASS_TYPE = "3";	   			// 订单未通过
	public static final String ORDERS_AUDIT_INVALID_TYPE = "2";	   			// 无效订单
	public static final String ORDERS_AUDIT_CANCEL_TYPE = "6";     			// 取消订单
	
	/*仓储订单状态*/
	public static final String ORDERS_WAIT_DELIVERY_TYPE = "0";				// 订单待发货
	public static final String ORDERS_DELIVERY_TYPE = "1";					// 订单发货
	public static final String ORDERS_RETREAT_TYPE = "2";					// 订单退单
	public static final String ORDERS_SIGN_TYPE = "4";						// 订单签收
	public static final String ORDERS_NET_SIGN_TYPE = "5";					// 订单网签
	public static final String ORDERS_NET_RETREAT_TYPE = "6";				// 订单网退
	
	/*财务系统状态*/
	public static final String BE_RECONCILED = "5";							// 待对账
	public static final String HAS_RECONCILED = "6";						// 已对账
	public static final String HAS_SECTIONED = "8";							// 已回款
	public static final String UN_CLAIMED = "1";							// 未认领
	public static final String HAS_CLAIMED = "2";							// 已认领
	
	/*订单支付方式*/
	public static final String ORDERS_DOWNLINE_PAY_TYPE = "15";				// 线下汇款
	public static final String ORDERS_GOODSTO_PAY_TYPE = "16";				// 货到付款

	/*财务系统功能状态*/
	public static final String FINANCIAL_SYS_NO = "0";							// 无财务系统
	public static final String FINANCIAL_HAS_RECONCILIATION = "1";				// 财务有对账功能 
	public static final String FINANCIAL_HAS_BACK_SECTION = "2";				// 财务有回款
	public static final String FINANCIAL_RECON_BACK_SECTION="3";				// 既有对账、又有回款
	
	/*表单字段转译类型*/
	public static final String CH_FIELD_TYPE = "CH_FIELD";		// 转译数据字段类型
	
	/*系统类型*/
	public static final String CM_SYSTEM_TYPE = "cm";				// 话务系统
	public static final String OM_SYSTEM_TYPE = "om";				// 订单系统
	public static final String WM_SYSTEM_TYPE = "wm";				// 仓储系统
	public static final String HM_SYSTEM_TYPE = "hm";				// 人资系统
	public static final String FM_SYSTEM_TYPE = "fm";				// 财务系统
	public static final String SS_SYSTEM_TYPE = "ss";				// 统计系统
	public static final String MM_SYSTEM_TYPE = "mm";				// 媒资系统
	
	/* 资源类型 */
	public static final Integer IS_MENUS = 0;					// 菜单
	
	/* 超级管理员 */
	public static final String SUPER_ADMIN = "1";				// 超级管理员
	
	/*根节点资源*/
	public static final Integer ROOT_RESOURCE_TYPE = 2;
	
	/*药品类型字典表数据类型*/
	public static final String MEDICINE_TYPE = "MEDICINE_TYPE";
	
	/*仓库类型字典表数据类型*/
	public static final String RECALL_TYPE = "RECALL_TYPE";
	
	/*字典表订单状态类型*/
	public static final String ORDERS_STATUS = "ORDERS_STATUS";		 //订单类型

}
